package cn.plugins.generator.test

import cn.plugins.generator.utils.GenerateCodeUtil

fun main() {
    GenerateCodeUtil.generateCode(
        dbType = "mysql",
        url = "jdbc:mysql://localhost:3306/base?useUnicode=true&serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&autoReconnect=true&failOverReadOnly=false&connectionCollation=utf8mb4_general_ci",
        databaseName = "base",
        userName = "root",
        password = "admin123456",
        frameworkType = "mybatisplus",
        tablePrefex = "base",
        tableName = "base_user_role",
        //tableName = "base_user_role,base_user",
        projectPath = "/Users/jiangyun/Desktop/test",
        packageName = "com.iwiteks.demo",
        controller = "controller",
        service = "service",
        mapper = "mapper",
        entity = "entity",
        xml = "mapper",
        languageType = "java",
        author = "jy",
        company = "贵州中测信息技术有限公司",
        apiPrefix = "/api",
        isRestfulStyle = true,
        enableGenerateDoc = true,
        enableGenVuePage = true
    )
}